import * as service from "@/service"

const prefix = "/static"

// 查询店铺列表
export function getShopList(data) {
    return service.fetch.post({
        url: `${prefix}/getShopList.json`,
        data
    })
}

// 新增店铺
export function createShop(data) {
    return service.fetch.post({
        url: `${prefix}/createShop.json`,
        data
    })
}

// 修改店铺
export function updateShop(data) {
    return service.fetch.post({
        url: `${prefix}/updateShop.json`,
        data
    })
}

// 删除店铺
export function deleteShops(data) {
    return service.fetch.post({
        url: `${prefix}/deleteShop.json`,
        data
    })
}
